def add(num1, num2):
    return num1 + num2

def sub(num1, num2):
    return num1 - num2

def mult(num1, num2):
    return num1 * num2

def devide(num1, num2):
    return num1 / num2

def main():
    o = input("+-*/:")
    if(o != '+' and o != '-' and o != '*' and o != '/'):
        print("invalid")
    else:
        num1 = int(input("Enter num1: " ))
        num2 = int(input("Enter num2: " ))
        if(o == '+'):
            print(add(num1, num2))
        elif(o == '-'):
            print(sub(num1, num2))
        elif(o == '*'):
            print(mult(num1, num2))
        elif(o == '/'):
            print(devide(num1, num2))

if __name__ == "__xmain__":
    main()

